import requests

def get_for_erp(order_id):
    url = f'http://192.168.16.240:8001/api/Inventory/purchase/QueryPurchaseOrderDetailIndexNoAsync?indexNo={order_id}'
    rsp = requests.get(url)
    if rsp.status_code == 200:
        data = rsp.json()
        data = data['data']
        return data